package com.zhuangxiaoyan.springboot.jpa.domian.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuangxiaoyan.springboot.jpa.domian.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.Optional;

/**
 * UserMapper
 *
 * @author xjl
 * @version 2025/01/19 08:42
 **/
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据邮箱查询用户 自定义接口
     *
     * @param email
     * @return
     */
    Optional<User> findByEmail(String email);
}